package sieve

import (
	"github.com/google/wire"
	"sieve_admin_server_userpass/app/api/util"
	"sieve_admin_server_userpass/app/server"
)

var (
	_              util.API = (*SieveActiveAPI)(nil)
	SieveActiveSet          = wire.NewSet(wire.Struct(new(SieveActiveAPI), "*"))
)

type SieveActiveAPI struct {
	util.EmptyAPI
}

func (a *SieveActiveAPI) GetApis() []*server.BatchModTree {
	return []*server.BatchModTree{
		{
			Obj:   a,
			Name:  "active",
			Title: "WS筛活跃", Perms: []*server.Perm{
				{Name: "query", Title: "查询"},
				//{Name: "upload", Title: "上传料子文件（本地上传的时候用到）"},
				{Name: "add", Title: "新增"},
				{Name: "download", Title: "下载"},
				{Name: "getDataSelection", Title: "获取数据选择列表"}},
			Order: 7,
		},
	}
}
